package cn.study.luckydomain.award;

import cm.study.config.exception.LdException;
import lombok.Data;

@Data
public class AwardNumber {
    private Integer number;
    public AwardNumber(Integer number){
        if(number<0){
            throw new LdException("奖项数量不能为0");
        }
        this.number=number;
    }
}
